package net.lab1024.sa.admin.module.business.flow.service;

import jakarta.validation.Valid;
import net.lab1024.sa.admin.module.business.flow.domain.form.FlwDeployInstanceAddForm;
import net.lab1024.sa.admin.module.business.flow.domain.form.FlwTaskQueryForm;
import net.lab1024.sa.admin.module.business.flow.domain.vo.FlwDeModelVO;
import net.lab1024.sa.admin.module.business.flow.domain.vo.FlwTaskVo;
import net.lab1024.sa.base.common.domain.PageResult;
import net.lab1024.sa.base.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.InputStream;
import java.util.Map;

public interface FlwInstanceService {
  void  startProcess(@RequestParam Map<String,Object> params);

  PageResult<FlwTaskVo> queryMyTask(@RequestBody FlwTaskQueryForm queryForm);

  void completeTask(String id);

  void claimTask(String id);

  void unclaimTask(String id);

  byte[] diagram(String processId);
}
